import request from "@/utils/request";

/**
 * 获取日志列表
 * @param params
 * @returns
 */
export function getloglist(data) {
  return request({
    url: '/management/updateLog.update_log/getList',
    method: 'post',
    data
  })
}

/**
 * 添加日志列表
 * @param params
 * @returns
 */
export function addlog(data) {
  return request({
    url: '/management/updateLog.update_log/add',
    method: 'post',
    data
  })
}

/**
 * 修改日志列表
 * @param params
 * @returns
 */
export function updatelog(data) {
  return request({
    url: '/management/updateLog.update_log/update',
    method: 'post',
    data
  })
}

/**
 * 删除日志列表
 * @param params
 * @returns
 */
export function dellog(data) {
  return request({
    url: '/management/updateLog.update_log/del',
    method: 'post',
    data
  })
}
/**
 * 获取系统事件列表
 * @param params
 * @returns
 */
export function getErrorCodeList(data) {
  return request({
    url: '/management/machine.machine_error_code/getErrorCodeLog',
    method: 'post',
    data
  })
}
/**
 * 获取系统事件列表
 * @param params
 * @returns
 */
export function exportErrorCode(data) {
  return request({
    url: '/management/machine.machine_error_code/exportErrorCode',
    method: 'post',
    data
  })
}
/**
 * 获取错误码类别列表
 * @param params
 * @returns
 */
export function getTypeList(data) {
  return request({
    url: '/management/machine.machine_error_code/getTypeList',
    method: 'post',
    data
  })
}

